<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<meta name="author" content="zhupeng">
		<TITLE>修改卡片出库单</TITLE>
		<script language="javascript" src="../script/common.js" type="text/javascript"></script>
		<script language="javascript" type="text/javascript">
			//全局变量
			var org = Common.cOrg();	//当前单位	
			//页面控件初始化
			function load(){ 
				var billType = getPara("billType")
				var remark = getPara("remark")
				if(billType == Constants.CARD_BILL_TYPE_ADJUST){
					$("remarkId").innerHTML="<label >调整原因</label> <input type='text' name='remark' maxlength='32' onblur=checkV(this,'',true)><span class='des'>*</span>";
				}
				if(remark == "undefined")
					$("remark").value = "";
				else
					$("remark").value = remark;
			}
			//选择卡片规格
			function selSpec(){			
				var v = openDialogFrame("/store/sel_white_list.html?",'选择卡片规格',464,700)
				if (v){
					$("cardSpecName").value = v.name;
					$("cardSpecId").value = v.id;
				}
			}
			//数据保存
			function onSave(){
				if(!checkForm(updataBillForm))return;
					var cardBillId = getPara("cardBillId");
					
					DWR.call('cardStoreService.editCardBillBasicInfo',cardBillId,$("remark").value,function(v){
						dialogBackValue(v)
					});
			}
	
			</script>
	</head>
	<body onload="load()">

		<div id="detview" style="">
			<div class="listBorder">
			<form id="updataBillForm" name="updataBillForm" class="listForm">
				<div class="formTitle">修改单据基础信息</div>
				<table id="tbl" cellSpacing=0 cellPadding=4 width="100%" border=0>
					<tr>
						<td id="remarkId"><label >备&nbsp;&nbsp;&nbsp;&nbsp;注</label> <input type="text" name="remark" maxlength="32"></td>
					</tr>
				</table>
			</form>
			</div>
		</div>
	
	</body>
</html>
